<link rel="stylesheet" href="<?=$this->baseUrl()?>/css/main.booking.details.css" />
<link rel="stylesheet" href="<?=$this->baseUrl()?>/css/backend.booking.details.css" />
<script type="text/javascript" src="<?=$this->baseUrl()?>/js/backend.booking.details.js"></script>
<h3><?=$this->title?></h3>
<div id="view-content" style="width:800px; margin: 0 auto;">
    <div class="row"><span id="labels">Booking Code</span><span>:</span><span id="content"><?= $this->details["code"] ?></span></div>
    <div class="row"><span id="labels">Customer Name</span><span>:</span><span id="content"><?= $this->details["u_name"] ?></span></div>
    <div class="row"><span id="labels">Venue Name</span><span>:</span><span id="content"><?= $this->details["v_name"] ?></span></div>
    <div class="row"><span id="labels">Booking Time</span><span>:</span><span id="content"><?= $this->details["booking_time"]; ?></span></div>
    <div class="row"><span id="labels">Starting Date</span><span>:</span><span id="content"><?= $this->details["start_date"] ?></span></div>
    <div class="row"><span id="labels">Duration</span><span>:</span><span id="content"><?= $this->details["duration"] ?>&nbsp;day/s</span></div>
    <div class="row"><span id="labels">Total Payment</span><span>:</span><span id="content">Rp<?= $this->details["total_payment"] ?></span></div>
    <div class="row"><span id="labels">Current Payment</span><span>:</span><span id="content">Rp<?= $this->details["current_payment"] ?></span></div>
    <div class="row"><span id="labels">Booking Status</span><span>:</span><span id="content"><?= $this->details["bstatus_name"] ?></span></div>
    <div class="row"><span id="labels">Payment Status</span><span>:</span><span id="content"><?= $this->details["pstatus_name"] ?></span></div>
    <div class="row"><span id="labels">Organizer</span><span>:</span><span id="content"><?= $this->details["organizer"] ?></span></div>
    <div class="row"><span id="labels">Participant</span><span>:</span><span id="content"><?= $this->details["participant"] ?>&nbsp;persons</span></div>

    <?php if($this->details["reason"]): ?>
    <div class="row"><span id="labels">Cancel Reason</span><span>:</span><span id="content"><?= $this->details["reason"] ?></span></div>
    <?php endif; ?>

    <br />
    <?php if(isset($this->prev)): ?>
        <?php if($this->details['booking_status_id']==1): ?>
        <div id="btnApprove" baseurl="<?=$this->baseUrl()?>" page="<?=$this->prev?>" bid="<?=$this->details['booking_id']?>">
            <img src="<?= $this->baseUrl() ?>/images/icons/tick.png" alt="approve" /> Approve
        </div>
        <?php endif; ?>

        <?php if($this->details['booking_status_id']>0 && $this->details['booking_status_id']<3): ?>
        <div id="btnCancel" baseurl="<?=$this->baseUrl()?>" page="<?=$this->prev?>" bid="<?=$this->details['booking_id']?>">
            <img src="<?= $this->baseUrl() ?>/images/icons/cross.png" alt="cancel" /> Cancel
        </div>
        <?php endif; ?>

        <div style="margin-top: 20px;"><a href="<?=$this->baseUrl()?>/backend/booking/<?=$this->prev?>">&lt; Back</a></div>

        <div style="display:none;">
            <form name="frmAct" id="frmAct" action="" method="post">
                <?=$this->formHidden("id","")?>
                <?=$this->formHidden("act","")?>
                <?=$this->formHidden("reason","")?>
            </form>
        </div>
    <?php endif; ?>
</div>